/* 全局容器 */
#container {
    width: 960px;
    margin: 0 auto;
    font: 14px "Sans Serif";
}

/* 顶栏 */

#top {
    width: 100%;
    height: 48px;
    margin: 5px auto;
}

#logo {
    height: 48px;
}

#nav {
    float: right;
    height: 36px;
    border: 1px solid #d3f1ea;
    margin-top: 10px;
    background: #eafffa;
}

#nav .nav-item {
    display: inline-block;
    width: 5em;
    line-height: 36px;
    text-align: center;
}

#nav .nav-item:hover {
    background: #fffa;
    cursor: default;
}

#nav .nav-item.discount {
    position: relative;
}

#nav .nav-item.discount::before {
    position: absolute;
    top: -10px;
    content: "";
    width: 45px;
    height: 16px;
    background: url("image/icon_count.png") no-repeat;
}

/* 菜单栏 */

#menu {
    height: 36px;
    margin: 5px auto;
    background: url("image/menuBg.jpg");
    font-size: 0;
}

#menu .menu-item {
    display: inline-block;
    width: 56.4px;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    color: white;
}

#menu .menu-item:hover {
    background: #fff7;
    cursor: default;
}

/* 广告栏 */

#banner {
    margin: 5px auto;
}

/* 页面主体 */

#body {
    width: calc(100% - 24px);
    border: 2px solid #c0e398;
    padding: 10px;
    margin: 10px auto;
    line-height: 1.8;
    background: white;
}

#body .bang {
    margin: 10px 0 20px -23px;
}

#body::after, .book::after {
    content: "";
    display: block;
    clear: both;
}

.book p {
    margin-block-start: 0;
    margin-block-end: 0;
    text-align: justify;
}

.book.rank-1 {
    float: left;
    width: 60%;
    margin-left: -10px;
}

#right-container {
    float: right;
    width: 40%;
}

#right-container .book {
    margin-bottom: 10px;
}

.book .cover {
    position: relative;
    float: left;
}

.book .cover::before {
    position: absolute;
    top: -5px;
    left: 5px;
    content: "";
}

.book.rank-1 .cover::before {
    width: 27px;
    height: 48px;
    left: 20px;
    top: -10px;
    background: url("image/bookNo1.gif") no-repeat;
}

.book.rank-2 .cover::before {
    width: 28px;
    height: 37px;
    background: url("image/bookNo2.gif") no-repeat;
}

.book.rank-3 .cover::before {
    width: 27px;
    height: 36px;
    background: url("image/bookNo3.gif") no-repeat;
}

.book .title {
    color: #256db6;
    font-weight: bold;
}

.book .title:hover {
    text-decoration: underline;
    cursor: default;
}

.book .money {
    color: #840013;
    font-weight: bold;
}

.book .discount {
    color: #2da889;
}

.book .description {
    margin-block-start: 0.5em;
}

/* 页面底部 */

#foot {
    width: 100%;
    margin: 5px auto;
    color: #777;
    text-align: center;
}

#foot .icon {
    vertical-align: middle;
}
